//
//  AppDelegate.m
//  WeChat
//
//  Created by Yanting on 16/7/13.
//  Copyright © 2016年 Yanting. All rights reserved.
//

#import "AppDelegate.h"


@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    //    [self setupStream];
    //    [self connectToHost];
    //判断用户是否登录
    if ([WAccount shareAccount].isLogin) {
        id mainVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateInitialViewController];
        self.window.rootViewController = mainVC;
        
        [[WXMPPTool sharedWXMPPTool] xmppLogin:nil];
    }
    return YES;
}


@end